package com.extension.company.contract;

import com.extension.company.common.mvp.IModel;
import com.extension.company.common.mvp.IView;

import java.util.HashMap;

/**
 * 添加收货地址
 */
public interface AddressListAddContract {

	interface Mode extends IModel {
		void saveAddressRequest(HashMap<String, String> map, RequestCallback callback); // 新增

		void editAddressRequest(HashMap<String, String> map, RequestCallback callback); // 修改编辑

	}

	interface View extends IView {
		void addAddressBackSuccess(String msg); // 添加地址回调

		void addAddressBackFaile(String msg);// 添加地址回调失败
	}

	interface RequestCallback {

        void showLoading();
        void hideLoading();
		void callbackSuccss(String msg); // m-->p  回调成功

		void callbackFaile(String msg);  // m--> p 回调失败
	}
}
